package com.aso114.project.mvp.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.aso114.project.R;
import com.aso114.project.base.BaseSimpleActivity;
import com.aso114.project.bean.QuestionBean;
import com.aso114.project.util.SystemBarHelper;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by asus on 2019/1/7.
 * 收藏--详情
 */

public class MyCollectInfoActivity extends BaseSimpleActivity {
    @BindView(R.id.layout_title_bar_back_iv)
    ImageView layoutTitleBarBackIv;
    @BindView(R.id.layout_title_bar_title_tv)
    TextView layoutTitleBarTitleTv;
    @BindView(R.id.layout_title_bar_right_iv)
    ImageView layoutTitleBarRightIv;
    @BindView(R.id.layout_title_bar_right_tv)
    TextView layoutTitleBarRightTv;
    @BindView(R.id.collect_top_title_left)
    TextView collectTopTitleLeft;
    @BindView(R.id.collect_top_title_right)
    TextView collectTopTitleRight;
    @BindView(R.id.collect_info_content)
    TextView collectInfoContent;
    @BindView(R.id.collect_info_title)
    TextView collectInfoTitle;
    @BindView(R.id.collect_info_radioGroup)
    RadioGroup collectInfoRadioGroup;
    @BindView(R.id.collect_info_see_analysis)
    TextView collectInfoSeeAnalysis;
    @BindView(R.id.collect_info_answer)
    TextView collectInfoAnswer;
    @BindView(R.id.collect_info_statistics)
    TextView collectInfoStatistics;
    @BindView(R.id.collect_info_analysis)
    TextView collectInfoAnalysis;
    @BindView(R.id.collect_info_analysis_ly)
    LinearLayout collectInfoAnalysisLy;
    @BindView(R.id.title_top_ly)
    RelativeLayout titleTopLy;

    private QuestionBean.QuestionBaseListBean.questionListBean dataBean;

    public static void getInstance(Context context, QuestionBean.QuestionBaseListBean.questionListBean questionListBean) {
        Intent intent = new Intent(context, MyCollectInfoActivity.class);
        intent.putExtra("questionListBean", questionListBean);
        context.startActivity(intent);
    }

    @Override
    protected int getResouseId() {
        return R.layout.mycollect_item_info;
    }

    @Override
    protected void initView() {
        SystemBarHelper.immersiveStatusBar(this);
        SystemBarHelper.setHeightAndPadding(this, titleTopLy);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            SystemBarHelper.immersiveStatusBar(this, 0);
            SystemBarHelper.setStatusBarDarkMode(this);
        }
        dataBean = (QuestionBean.QuestionBaseListBean.questionListBean) getIntent().getSerializableExtra("questionListBean");
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void getBroadcast(Context context, Intent intent) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.layout_title_bar_back_iv, R.id.collect_info_see_analysis})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.layout_title_bar_back_iv:
                finish();
                break;
            case R.id.collect_info_see_analysis:
                break;
        }
    }
}
